package tests;

import java.util.ArrayList;

import sensors.DATA;
import sensors.EmulatedSensor;
import sensors.HeartSensor;
import sensors.ISensor;
import sensors.TimeSensor;
import src.ICommunicator;
import src.JFrameCommunicator;
import algos.AlgoDescRisk;
import algos.IAlgo;
import controller.Controller;

public class TController {

	public static void main(String[] args) throws InterruptedException {
		ArrayList<ISensor> sensori = new ArrayList<ISensor>();

		sensori.add(new EmulatedSensor(new double[]{0,0.5,1},DATA.HUMAN_BASED,true));
		sensori.add(new EmulatedSensor(new double[]{0,0.6,1},DATA.HUMAN_BASED,true));
		sensori.add(new TimeSensor());
		sensori.add(new HeartSensor());

		ICommunicator communicator = new JFrameCommunicator(sensori);
		IAlgo algoritmo = new AlgoDescRisk();

		Controller controller = new Controller(communicator, algoritmo, sensori);
		controller.run();
	}

}
